package cas.ihep.test;

import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.Filters;
import org.bson.Document;

public class Main {

    public static void main(String args[])throws Exception {
//        PwaRun run=new PwaRun(args[0]);
//        System.exit(run.run());
        MongoClient client= MongoClients.create("mongodb://helion02.ihep.ac.cn:27017");
        MongoDatabase database=client.getDatabase("evtpdl");
        MongoCollection<Document> evtpdl=database.getCollection("evtpdl");
        for(Document doc:evtpdl.find(Filters.eq("anti-d"))){
            System.out.println(doc.get("Vpars").getClass());
        }
        //EvtPDL pdl=new EvtPDL("/home/gesturewei/workspace/pdt.table.lua","/home/gesturewei/Decay.lua","/home/gesturewei/5R_c.lua");
    }
}
